package zust.study.设计模式.创建型模式.单例模式;

public class SingleObject {

    private static SingleObject instance = new SingleObject();

    private SingleObject() {}

    public static SingleObject getInstance() {
        return instance;
    }

    public void showMsg() {
        System.out.println("singleObject message!");
    }
}
